<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/12/012
 * Time: 11:51
 */

namespace app\api\validate;


class OrderAftermarketValidate extends BaseValidate {
    protected $rule = [
        'type' => 'require|in:1,2',
        'order_id' => 'isPositiveInteger',
        'msg' => 'require',
        'linkman' => 'require',
        'mobile' => 'require|mobile',
        'id' => 'IDMustBePostiveInt',
        'member_express_sn' => 'require'
    ];

    protected $scene = [
        'create'  =>  ['type','order_id', 'msg', 'linkman', 'mobile'],
        'logistics' => ['id','member_express_sn'],
    ];
}